package version_info

import (
	"github.com/gin-gonic/gin"
)

// 方式二
func ViewInit(e *gin.Engine) {
	versionView := NewVersionView()
	//init url
	versionURLInit(e, versionView)
}

func versionURLInit(e *gin.Engine, view *VersionView) {
	e.GET("/api/version_info", view.getVersionInfoView)

}

// 方式一
//func Routers(e *gin.Engine) {
//	e.GET("/api/version_info", getVersionInfoView)
//}
